package com.sure.minion.services.base.vo;

import java.io.Serializable;

/**
 * @Description 基础查询对象
 * @author syuan
 * @date 2015年8月28日  上午11:39:14
 * Company: TravelSky
 */
public abstract class BaseQuery implements Serializable {

	private static final long serialVersionUID = -726872893600903161L;

	/** 排序的字段名*/
	protected String orderBy;

	/** 查询的页号*/
	protected int currentPage = -1;

	/** 每页数量*/
	protected int numPerPage = 10;

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getNumPerPage() {
		return numPerPage;
	}

	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	/**
	 * @Description JQPL拼装
	 * @param isCount
	 * @return
	 * @author sure
	 */
	public abstract QueryAssist buildQueryString(boolean isCount);

}
